{% extends "layout.html" %}
{% block content %}

    <div class="panel panel-default" style="margin-bottom: 400px;">
        <div class="panel-heading">
            <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
            个人信息
        </div>
        <!-- Table -->
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>用户名</th>
                <th>密码</th>
                <th>年龄</th>
                <th>性别</th>
                <th>邮箱</th>
                <th style="text-align: center;line-height: 20px;font-size: 20px">手机号</th>
                <th style="text-align: center;line-height: 20px;font-size: 20px">操作</th>
            </tr>
            </thead>
            <tbody>
            {% for obj in queryset %}
                <tr>
                    <td>{{ obj.username }}</td>
                    <td>*****************</td>
                    <td>{{ obj.age }}</td>
                    <td>{{ obj.get_gender_display }}</td>
                    <td>{{ obj.email }}</td>
                    <td>{{ obj.dianhua }}</td>
                    <td>
                        <a class="btn btn-primary btn-xs" href="/user/{{ obj.id }}/edit/">修改</a>
                        <a class="btn btn-danger btn-xs" href="/user/{{ obj.id }}/delete/"
                           onclick="javascript:return del();">注销</a>
                    </td>
                </tr>
            {% endfor %}

            </tbody>
        </table>
    </div>
    <script>

    </script>
{% endblock %}